package org.example.bitoperation;

/**
 * @Description: TODO
 * @Author wyatt
 * @Data 2024/08/22 17:34
 */
public class Solution136 {

    public int singleNumber(int[] nums) {
        int x = 0;
        for (int num : nums) {
            x^=num;
        }
        return x;
    }
}
